package c.e.b.h.e.k;

import c.e.b.h.e.b;
import c.e.b.h.e.k.t.j;
import java.io.File;
import java.util.HashSet;
import java.util.Objects;

/* compiled from: CrashlyticsController */
public class o implements Runnable {
    public final /* synthetic */ t a;

    public o(t tVar) {
        this.a = tVar;
    }

    public void run() {
        t tVar = this.a;
        File[] r = t.r(tVar.l(), new j());
        Objects.requireNonNull(tVar);
        b bVar = b.a;
        HashSet hashSet = new HashSet();
        for (Object obj : r) {
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append("Found invalid session part file: ");
            stringBuilder.append(obj);
            bVar.b(stringBuilder.toString());
            hashSet.add(t.o(obj));
        }
        if (!hashSet.isEmpty()) {
            for (Object obj2 : t.r(tVar.l(), new p(tVar, hashSet))) {
                StringBuilder stringBuilder2 = new StringBuilder();
                stringBuilder2.append("Deleting invalid session file: ");
                stringBuilder2.append(obj2);
                bVar.b(stringBuilder2.toString());
                obj2.delete();
            }
        }
    }
}
